package org.sample.vm.gc;

/**
 * Object is moved to tenure generation when its' size is over threshold.
 * 
 * VM Args：-verbose:gc -Xms20M -Xmx20M -Xmn10M -XX:+PrintGCDetails -XX:SurvivorRatio=8 -XX:PretenureSizeThreshold=3145728
 */
public class PretenureSizeThreshold {
	
	private static final int _1MB = 1024 * 1024;
	
	@SuppressWarnings("unused")
	public static void main(String[] args) {
		byte[] allocation;
		allocation = new byte[4 * _1MB];
	}

}
